@echo off
echo Checking if Python is installed...

where python > nul 2>&1

if %errorlevel% equ 0 (
    echo Python is installed and present in PATH.
    python --version

	git clone https://gitee.com/minimapv/ani.git

	cd ani

	py -3.10 -m venv venv

	call venv\Scripts\activate.bat

	set PYTHONUTF8=1

	python -m pip install --upgrade pip

	python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

	python -m pip install -e .

	python -m pip install -e .[stylize]

	python -m pip install -e .[dwpose]

	python -m pip install -e .[stylize_mask]

	pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

	echo Installation completed. Press any key to exit.

) else (
    echo Python is not installed or not in PATH. See the ReadMe for more information.
)

pause >nul